/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package calculator.core;

import calculator.manager.IApplicationManager;

/**
 *
 * @author Mirek
 */
public class MockDataProvider implements ICalculatorDataProvider{

    private String firstOperand;
    private String secondOperand;
    private String firstOperandType;
    private String secondOperandType;
    private String operationType;
    private IApplicationManager manager;

    public MockDataProvider(String firstOperand, String secondOperand, String firstOperandType, String secondOperandType, String operationType, IApplicationManager manager) {
        this.firstOperand = firstOperand;
        this.secondOperand = secondOperand;
        this.firstOperandType = firstOperandType;
        this.secondOperandType = secondOperandType;
        this.operationType = operationType;
        this.manager = manager;
    }

    public String getFirstOperand() {
        return firstOperand;
    }

    public String getSecondOperand() {
        return secondOperand;
    }

    public String getFirsOperandType() {
        return firstOperandType;
    }

    public String getSecondOperandType() {
        return secondOperandType;
    }

    public String getOperation() {
        return operationType;
    }

    public void setManager(IApplicationManager manager) {
        this.manager = manager;
    }

    public void triggerOperation()
    {
        this.manager.doAction(this);
    }

}
